package Message.Public
{
	import Framework.Serialize.*;
	
	public class SNpc extends Object
	{
		public var npcId:int;
		//public var npcType:ENpcType;
		public var name:String;
		public var mapId:int;
		public var notShowInMap:int;
		public var point:SPoint;
		public var relPoint:SPoint;
		public var passTo:Array;
		
		public function SNpc()
		{
			
		}
		
		public function __write(param1:SerializeStream) : void
		{
			param1.writeInt(this.npcId);
			//this.npcType.__write(param1);
			param1.writeString(this.name);
			param1.writeInt(this.mapId);
			param1.writeInt(this.notShowInMap);
			this.point.__write(param1);
			this.relPoint.__write(param1);
			//SeqPassToHelper.write(param1, this.passTo);
			
		}
		
		public function __read(param1:SerializeStream) : void
		{
			this.npcId = param1.readInt();
			//this.npcType = ENpcType.__read(param1);
			this.name = param1.readString();
			this.mapId = param1.readInt();
			this.notShowInMap = param1.readInt();
			this.point = new SPoint();
			this.point.__read(param1);
			this.relPoint = new SPoint();
			this.relPoint.__read(param1);
			//this.passTo = SeqPassToHelper.read(param1);
			
		}
		
	}
}
